package io.hugetower.modules.pest.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 作物表
 * 
 * @author fox
 * @email fox@gmail.com
 * @date 2024-04-14 07:54:39
 */
@Data
@TableName("crop_type")
@ApiModel(value = "作物表")
public class CropTypeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
	@TableId(type= IdType.AUTO)
	private Long id;

    /**
     * 作物名称
     */
    @ApiModelProperty(value = "作物名称")
	private String name;
    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
	private Long creator;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
	private Date createDate;
    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
	private Long updater;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
	private Date updateDate;
}
